<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
%>
<style>
.tjdd6 {
	width: 1100px;
	height: 300px;
	padding-top: 30px;
}

.tjdd6 ul li {
	width: 1100px;
	height: 30px;
	line-height: 30px;
	text-align: right;
	font-size: 14px;
	font-weight: bold;
}

.tjdd6 span {
	font-size: 24px;
	color: #e55908;
	font-weight: bold;
}

.tjdd6 input {
	width: 200px;
	height: 48px;
	border: #4672d5 2px solid;
	background: #4672d5;
	color: #fff;
	font-size: 18px;
	border-radius: 15px;
	margin-top: 20px;
}

.tjdd7 {
	width: 1096px;
	height: 110px;
	line-height: 110px;
	text-align: center;
	border: #6e8ce2 2px solid;
	background: #c6d6fb;
}

.tjdd7 p {
	line-height: 110px;
	font-size: 28px;
	color: #000;
}

.tjdd8 {
	width: 230px;
	height: 64px;
	border: #dfdfdf 1px solid;
	float: left;
	margin-right: 20px;
	line-height: 64px;
}

.tjdd8 img {
	width: 55px;
	height: 55px;
	margin: 4px;
	float: left;
}

.tjdd8 a {
	font-size: 18px;
	margin-left: 10px;
}

.tjdd9 {
	width: 1100px;
	height: 100px;
	text-align: center;
}

.tjdd9 input {
	width: 200px;
	height: 48px;
	border: #4672d5 2px solid;
	background: #fff;
	color: #4672d5;
	font-size: 18px;
	border-radius: 15px;
}
</style>
<script type="text/javascript" src="${staticPath}/js/jquery-qrcode-master/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="${staticPath}/js/app/pay/pcpay.js"></script>
<input type="hidden" id="path" value="${staticPath}" />
<div id="mainlist">
	<div class="popup" id="balancePopup" style="height: 210px; width: 480px;">
		<div class="top_nav" id='top_nav' style="width: 480px;">
			<div align="center">
				<span>请输入支付密码</span>
				<a class="guanbi" id="guanbi"></a>
			</div>
		</div>
		<div class="min">
			<div class="tc_login" style="height: 150px">
				<div class="right">
					<div align="center">
						<input style="width: 300px; height: 40px;" type="password" name="pass" id="password" autocomplete="off">
					</div>
					<div align="center">
						<input id="queding" type="submit" class="button" title="Sign In" value="确定">
					</div>
					<dd>
						<div align="center">
							<a href="javascript:gotoHtml('/setting/editpaypw.htm')">忘记密码？</a>
						</div>
					</dd>
				</div>
			</div>
		</div>
	</div>
	<input type="hidden" value="${code}" id="code" />
	<input type="hidden" value="${key}" id="key" />
	<input type="hidden" value="${money}" id="money" />
	<div id="mainpay" style="padding-top: 20px; background: #fff;">
		<div class="tjdd" style="margin: auto">
			<div class="tjdd7">
				<p>订单提交成功</p>
			</div>
			<div class="tjdd6" style="height: 150px;">
				<ul>
					<c:if test="${express!=null}">
						<li>
							共${num}件商品，商品总金额：￥
							<fmt:formatNumber value="${goodsMoney/100}" pattern="#,###.##" />
						</li>
						<li>
							优惠金额：￥
							<fmt:formatNumber value="${discount/100}" pattern="#,###.##" />
						</li>
						<li>
							运费：￥
							<fmt:formatNumber value="${express/100}" pattern="#,###.##" />
						</li>
					</c:if>
					<li>
						实付总额：
						<label style="color: red; font-size: 25px;">
							￥
							<fmt:formatNumber value="${money/100}" pattern="#,###.##" />
						</label>
					</li>
				</ul>
			</div>
			<div class="tjddtit">
				<h1>支付方式</h1>
			</div>
			<div class="tjdd6" style="height: 150px;">
				<div class="tjdd8">
					<a href="javascript:weixin();" >
						<img src="${staticPath}/pcimages/wx.png" />
						微信支付
					</a>
				</div>
				<div class="tjdd8">
					<a href="javascript:zhifubao();" >
						<img src="${staticPath}/pcimages/zfb.png" />
						支付宝支付
					</a>
				</div>
				<c:if test="false">
					<div class="tjdd8">
						<a href="" >
							<img src="${staticPath}/pcimages/yl.png" />
							银联支付
						</a>
					</div>
				</c:if>
				<c:if test="${money<=account.purse && purse}">
					<div class="tjdd8">
						<a href="javascript:balance();">
							<img src="${staticPath}/pcimages/ye.png" />
							余额支付
						</a>
					</div>
				</c:if>
			</div>
			<c:if test="${upgrade}">
				<div class="tjdd9">
					<input type="button" value="取消订单" onclick="cancelOrder();" />
				</div>
			</c:if>
			<div id="zhifubao"></div>
		</div>

	</div>
</div>


